#define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
#include <string>
using namespace std;
int main() 
{
    int flag = 1;
    int count = 0;
    int arr[1000];
    int n = 0;
    cin >> n;
    for (int i = 0; i < n; i++)
    {
        cin >> arr[i];
    }
    for (int i = 0; i < n - 1; i++)
    {
        for (int j = i + 1; j < n; j++)
        {
            if (arr[i] == arr[j])
                arr[j] = -1;    
        }
    }
    for (int i = 0; i < n - 1; i++)
    {
        for (int j = i + 1; j < n; j++)
        {
            if (arr[j] < arr[i])
            {
                int k = arr[j];
                arr[j] = arr[i];
                arr[i] = k;
            }
        }
    }
    for (int i = 0; i < n; i++)
    {
        if (arr[i] != -1)
            printf("%d ", arr[i]);
    }
    return 0;
}